package com.ygkj.common.distributionlock.mysql;

/**
 * mysql distribution lock mapper
 */
public interface LockMapper {
    /**
     * release lock
     * @param id
     * @return
     */
    int unLock(int id);

    /**
     * get lock
     * @param id
     * @return
     */
    int lock(int id);
}